<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>登录失败</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	
	<style type="text/css">
		.div{
			text-align: center;
			position: absolute;
			left:50%;top:50%; 
			margin-left:-140px;
			margin-top:-100px;
			font-size: 20px;
			color : dodgerblue;
		}
		body{
		  font-family: "华文细黑";
		  width: 100%;
		  height:auto;
		  background:url("${pageContext.request.contextPath}/common/image/name.jpg") no-repeat;
		  background-size: 100%;
		}
	</style>
	
	<script language="javascript" type="text/javascript"> 
	var i = 5; 
	var intervalid; 
	intervalid = setInterval("fun()", 1000); 
	function fun() { 
	if (i == 0) { 
	window.location.href = "${pageContext.request.contextPath}/page/login.jsp"; 
	clearInterval(intervalid); 
	} 
	document.getElementById("mes").innerHTML = i; 
	i--; 
	} 
	</script> 
  </head>
  
  <body>
  	<div id="errorfrm" class="div"> 
	<h3>登录失败</h3> 
	<p>将在 <span id="mes">5</span> 秒钟后返回登录页面！</p> 
</div> 
		
  </body>
</html>
